Fix crash caused UserAccountManager dependency not being injected#4111
Conversation
Fixes #4107 Signed-off-by: Chris Narkiewicz <hello@ezaquarii.com>
32bc73e to
30af6a9
Compare
|
@tobiasKaminsky @AndyScherzinger I think this should be merged ASAP. |
| import androidx.core.view.MenuItemCompat; | ||
|
|
||
| public class PreviewTextFragment extends FileFragment implements SearchView.OnQueryTextListener { | ||
| public class PreviewTextFragment extends FileFragment implements SearchView.OnQueryTextListener, Injectable { |
There was a problem hiding this comment.
Missing Injectable caused the user account to be null and - surprise, surprise - NPE.
To test this code path just try opening any txt file. It should not crash.
|
It looks like emulator died. There is no chance this fix causes a build failure. Restarting... |
|
Build fails again, despite no errors in log. |
|
APK file: https://www.kaminsky.me/nc-dev/android-artifacts/9603.apk |
Codacy310Lint
SpotBugs (new)
SpotBugs (master)
|
Codecov Report
@@ Coverage Diff @@
## master #4111 +/- ##
============================================
- Coverage 12.81% 12.77% -0.05%
Complexity 1 1
============================================
Files 332 332
Lines 31068 31068
Branches 4431 4431
============================================
- Hits 3981 3968 -13
- Misses 26413 26430 +17
+ Partials 674 670 -4
|
|
Latest build worked 👍 |
|
Yeah, worked also here ... |
|
Thank you @ezaquarii for finding the cause and also directly provide a PR ❤️ |

Signed-off-by: Chris Narkiewicz hello@ezaquarii.com
Resolves #4107